# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=repology-cli
pkgver=1.3.0
pkgrel=0
pkgdesc="Command line interface for Repology.org"
url="https://github.com/ibara/repology"
arch="x86_64 aarch64 loongarch64" # ldc
license="ISC"
makedepends="ldc"
subpackages="$pkgname-doc"
source="https://github.com/ibara/repology/releases/download/v$pkgver/repology-$pkgver.tar.gz
	default-repo-alpine_edge.patch
	"
builddir="$srcdir/repology-$pkgver"

build() {
	make DMD=ldmd2
}

check() {
	./repology --version
}

package() {
	install -Dvm755 repology -t "$pkgdir"/usr/bin/
	install -Dvm644 repology.1 -t "$pkgdir"/usr/share/man/man1/
}

sha512sums="
df4f3204512653b2ca15f1ae1d9ff83558b05de63269821fddfc2ff68a70bcbbbce4a3e7365fabfb1a9751f20da4b55c3be282d7e1f16380f9a2eebc336b9024  repology-1.3.0.tar.gz
cdca2926b91eedbc4cc83f4d4e0e9b0fc4a1e29e108398f2d6cbaa932823aadcbc0023c0044264da10ba3cf0af4718bb3eb9b46a61c8ac3fb93065a37b0ff877  default-repo-alpine_edge.patch
"
